package models

type Bookbuild struct {
	Id       int
	BookName string
	Price    float64
}

func NewBookbuild(id int, bookName string) *Bookbuild {
	return &Bookbuild{Id: id, BookName: bookName}
}
func (this *Bookbuild) Setprice(price float64) *Bookbuild{
	this.Price = price
	return this
}
func (this *Bookbuild) Build() *Book {
	return &Book{Id: this.Id, Name: this.BookName, Price: this.Price}
}
